/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import java.time.LocalDate;
import com.mybatisflex.annotation.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 节假日
 *
 * @author Coulson
 * @since 2025-01-05
 */
@Data
@Table("att_holiday")
@EqualsAndHashCode(callSuper = true)
public class Holiday extends NumberIdWithTime {

    /**
     * 租户
     */
    private Long tenantId;
    /**
     * 日历
     */
    private Long calendarId;
    /**
     * 节日名称
     */
    private String name;
    /**
     * 所属年份
     */
    private Integer year;
    /**
     * 开始时间
     */
    private LocalDate startDate;
    /**
     * 结束时间
     */
    private LocalDate endDate;
    /**
     * 天数
     */
    private Integer days;
    /**
     * 节日类型 0/法定节日 1/公司节日
     */
    private Integer type;

    public static final String TENANT_ID = "tenant_id";
    public static final String NAME = "name";
    public static final String YEAR = "year";
    public static final String START_DATE = "start_date";
    public static final String END_DATE = "end_date";
    public static final String DAYS = "days";
    public static final String TYPE = "type";
}
